package com.littleken.foodiePojo.query.base;

import com.littleken.foodieCommon.enums.SortTypeEnum;

import java.io.Serializable;

/*
 * Create by littleken on 2020/11/24 15:21
 */
public class QueryParamDTO implements Serializable {

    private Enum sortBy;

    private SortTypeEnum order = SortTypeEnum.asc;

    private Integer pageNo = 1;

    private Integer pageSize = 100;

    public Enum getSortBy() {
        return sortBy;
    }

    public void setSortBy(Enum sortBy) {
        this.sortBy = sortBy;
    }

    public SortTypeEnum getOrder() {
        return order;
    }

    public void setOrder(SortTypeEnum order) {
        this.order = order;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
